package com.zjcode.oa.api.controller;

import com.zjcode.oa.api.service.OaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.concurrent.TimeUnit;
/**
 * @ClassName:OpenApiController
 * @功能：
 * @author：wlei
 * @日期：2022/4/30-17:48
 **/
@RestController
@RequestMapping("/v1/oa/openapi/")
public class OpenApiController {

    @Autowired
    private OaService oaService;

    @GetMapping("apiversion")
    public Object queryApiVersion() {
        // 模拟线程睡眠
        // TimeUnit.SECONDS.sleep(1000);
        return oaService.version();
    }
}
